<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
    <link rel="stylesheet" href="/css/style.css">
</head>
<body>

    <h1><a href="/add">添加文章</a></h1>
    

    <ul>
        <% for(let i=0;i<lists.length;i++){ %>
            <li><a href="/content?id=<%=i %>"><%= lists[i].title %></a> <a href="">删除</a></li>
        <% } %>
    </ul>
</body>
</html>